package it.slothy.noveleditor.starter.test;

public class Outcome {
	
	//Dadi del Lancio
	private Dice[] dices;
	
	//Creo un lancio di dadi
	public Outcome(){
		for(int i=0; i<5; i++){
			this.dices[i] = new Dice();
		}
	}
	
	public Dice[] getDices() {
		return dices;
	}

	public void setDices(Dice[] dices) {
		this.dices = dices;
	}

	public void reDices() {
		for(Dice d : this.dices)
			if(!d.isBlocked())
				d.reLaunch();
	}

	public boolean areDicesBlocked() {
		for(Dice d : dices)
			if(!d.isBlocked())
				return false;
		
		return true;
	}

}
